<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BAction</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BAction">
			<h1>BAction</h1>
			<p>Inherites from<a href="BObject.html">BObject</a></p>
			<p id="resume"><a href="#desc">desc</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"></td><td><a href="#BAction()">BAction</a>();</td></tr>
				<tr><td align="right"></td><td><a href="#BAction(const BString&)">BAction</a>(const BString& text);</td></tr>
				<tr><td align="right"></td><td><a href="#BAction(BIcon*,const BString&)">BAction</a>(BIcon* icon, const BString& text = BString());</td></tr>
				<tr><td align="right"></td><td><a href="#BAction(BImage*,const BString&)">BAction</a>(BImage* image, const BString& text = BString());</td></tr>
				<tr><td align="right"></td><td><a href="#~BAction()">~BAction</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setVisible(bool)">setVisible</a>(bool visible);</td></tr>
				<tr><td align="right">bool </td><td><a href="#visible()">visible</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setColor(BByte, BByte, BByte,BByte)">setColor</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
				<tr><td align="right">void </td><td><a href="#setColor(const BColor&)">setColor</a>(const BColor& color);</td></tr>
				<tr><td align="right">const BColor& </td><td><a href="#color()">color</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setGraph(Graph)">setGraph</a>(Graph graph);</td></tr>
				<tr><td align="right">Graph </td><td><a href="#graph()">graph</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setImage(BImage*)">setImage</a>(BImage* image);</td></tr>
				<tr><td align="right">const BImage* </td><td><a href="#image()">image</a>() const;</td></tr>
				<tr><td align="right">BImage* </td><td><a href="#image()">image</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setIcon(BIcon*)">setIcon</a>(BIcon* icon);</td></tr>
				<tr><td align="right">const BIcon* </td><td><a href="#icon()">icon</a>() const;</td></tr>
				<tr><td align="right">BIcon* </td><td><a href="#icon()">icon</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setText(const BString&)">setText</a>(const BString& text);</td></tr>
				<tr><td align="right">const BString& </td><td><a href="#text()">text</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setTips(const BString&)">setTips</a>(const BString& tips);</td></tr>
				<tr><td align="right">const BString& </td><td><a href="#tips()">tips</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#setShortcut(const BString&,BWidget*)">setShortcut</a>(const BString& text, BWidget* widget = 0);</td></tr>
				<tr><td align="right">bool </td><td><a href="#setShortcut(const BKeyArray&,BWidget*)">setShortcut</a>(const BKeyArray& keys, BWidget* widget = 0);</td></tr>
				<tr><td align="right">bool </td><td><a href="#setShortcut(BShortcut*)">setShortcut</a>(BShortcut* shortcut);</td></tr>
				<tr><td align="right">BShortcut* </td><td><a href="#shortcut()">shortcut</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setCheckable(bool)">setCheckable</a>(bool checkable);</td></tr>
				<tr><td align="right">bool </td><td><a href="#checkable()">checkable</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#setChecked(bool)">setChecked</a>(bool checked);</td></tr>
				<tr><td align="right">bool </td><td><a href="#checked()">checked</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#trigger()">trigger</a>();</td></tr>
			</table>
			<div id="desc">
				<h2>Detail Description :</h2>
				<p> Actions can be added to menus, and will automatically keep them in sync. 
					<br/> For example in a word processor, if the user presses a Bold toolbar button, the Bold menu item will automatically be checked. 
					<br/> Actions can be created as independent objects, but they may also be created during the construction of menus; 
					<br/> The BMenu class contains convenience functions for creating actions suitable for use as menu items. 
					<br/>
				</p>
				<table>
					<tr><td>Signal_Trigger</td><td>Emited when trigger() is called.</td></tr>
					<tr><td>Signal_Checked</td><td id="debug">Emited when setChecked() is called, value is (bool)checked.</td></tr>
				</table>
				<p>See also : </p>
			</div>
			<h2 id="docs">Member Documentation :</h2>
			<div id="BAction()">
				<h3>BAction();</h3>
				<p>Constructs action. </p>
				<p>See also : </p>
			</div>
			<div id="BAction(const BString&)">
				<h3>BAction(const BString&amp; text);</h3>
				<p>this is method comment</p>
				<p>See also : </p>
			</div>
			<div id="BAction(BIcon*,const BString&)">
				<h3>BAction(BIcon* icon, const BString&amp; text = BString());</h3>
				<p>this is method comment</p>
				<p>See also : </p>
			</div>
			<div id="BAction(BImage*,const BString&)">
				<h3>BAction(BImage* image, const BString&amp; text = BString());</h3>
			</div>
			<div id="~BAction()">
				<h3>~BAction();</h3>
				<p>Destory this action.</p>
				<p>See also : </p>
			</div>
			<div id="setVisible(bool)">
				<h3>void setVisible(bool visible);</h3>
			</div>
			<div id="visible()">
				<h3>bool visible() const;</h3>
			</div>
			<div id="setColor(BByte, BByte, BByte,BByte)">
				<h3>void setColor(BByte r, BByte g, BByte b, BByte a = 255);</h3>
			</div>
			<div id="setColor(const BColor&)">
				<h3>void setColor(const BColor&amp; color);</h3>
			</div>
			<div id="color()">
				<h3>const BColor&amp; color() const;</h3>
			</div>
			<div id="setGraph(Graph)">
				<h3>void setGraph(Graph graph);</h3>
			</div>
			<div id="graph()">
				<h3>Graph graph() const;</h3>
			</div>
			<div id="setImage(BImage*)">
				<h3>void setImage(BImage* image);</h3>
			</div>
			<div id="image()">
				<h3>const BImage* image() const;</h3>
			</div>
			<div id="image()">
				<h3>BImage* image();</h3>
			</div>
			<div id="setIcon(BIcon*)">
				<h3>void setIcon(BIcon* icon);</h3>
				<p>Change action's icon, menu will show the icon if menu's form include icon.</p>
				<p>See also : </p>
			</div>
			<div id="icon()">
				<h3>const BIcon* icon() const;</h3>
				<p>Get action's icon.</p>
				<p>See also : </p>
			</div>
			<div id="icon()">
				<h3>BIcon* icon();</h3>
			</div>
			<div id="setText(const BString&)">
				<h3>void setText(const BString&amp; text);</h3>
				<p>Change action's text, menu will show the text if menu's form include icon.</p>
				<p>See also : </p>
			</div>
			<div id="text()">
				<h3>const BString&amp; text() const;</h3>
				<p>Get action's text.</p>
				<p>See also : </p>
			</div>
			<div id="setTips(const BString&)">
				<h3>void setTips(const BString&amp; tips);</h3>
			</div>
			<div id="tips()">
				<h3>const BString&amp; tips() const;</h3>
			</div>
			<div id="setShortcut(const BString&,BWidget*)">
				<h3>bool setShortcut(const BString&amp; text, BWidget* widget = 0);</h3>
			</div>
			<div id="setShortcut(const BKeyArray&,BWidget*)">
				<h3>bool setShortcut(const BKeyArray&amp; keys, BWidget* widget = 0);</h3>
			</div>
			<div id="setShortcut(BShortcut*)">
				<h3>bool setShortcut(BShortcut* shortcut);</h3>
			</div>
			<div id="shortcut()">
				<h3>BShortcut* shortcut();</h3>
			</div>
			<div id="setCheckable(bool)">
				<h3>void setCheckable(bool checkable);</h3>
				<p>this is method comment</p>
				<p>See also : </p>
			</div>
			<div id="checkable()">
				<h3>bool checkable() const;</h3>
				<p>this is method comment</p>
				<p>See also : </p>
			</div>
			<div id="setChecked(bool)">
				<h3>void setChecked(bool checked);</h3>
				<p>this is method comment</p>
				<p>See also : </p>
			</div>
			<div id="checked()">
				<h3>bool checked() const;</h3>
				<p>this is method comment</p>
				<p>See also : </p>
			</div>
			<div id="trigger()">
				<h3>void trigger();</h3>
				<p>this is method comment</p>
				<p>See also : </p>
			</div>
		</div>
	</body>
</html>